<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>USER</title>
</head>
<body>
  <div id="main"></div>
  <script>
    var cookieText = decodeURIComponent(document.cookie);
    document.getElementById('main').innerHTML = cookieText;
    if (cookieText.indexOf('token') >= 0) {
      location.href = '/page/user';
    }
  </script>
</body>
</html>